package com.controller;

import com.vo.req.OrderRequest;
import com.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class OrderController {

    @Autowired
    OrderService orderService;

    @RequestMapping("/test/save")
    public String save(@RequestBody OrderRequest orderRequest) throws Exception {
        System.out.println("進入");
        orderService.save(orderRequest);
        return "success";
    }
}
